reset

open fun reset(): @Nullable Array<SparseIntArray>(source)

Resets the metrics data and returns the currently-collected metrics.

Return

An array whose index refers to the type of metric stored in that item's SparseIntArray object, e.g., data for TOTAL_DURATION is stored in the [TOTAL_INDEX] item.

See also